package com.douxg.learning.spring.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @Auther douxg
 * @Date 2021/4/22 10:07
 */
@Component
@Data
public class BeanTwo {
    @Value("${two.b}")
    private String b;
    @Value("${three}")
    private List<String> list1;
    @Value("${three}")
    private String list2;
    @Resource
    private BeanOne beanOne;

    public void run() {
        System.out.println("two");
    }
}
